<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/core/transition.jsp" %>
<%!

    private boolean _login_transition_login(String userName, String passWord) {
        String _ = "";
        this._transition_init();
        try {
            this._transition_begin(false);
            _ = this._dao_getString(
                    "select 1 from dual where ? = ?",
                    new String[]{userName, passWord});

            this._dao_execute("insert into test_transition values('123')");
            this._dao_execute("insert into log ....");
            this._dao_execute("insert into test_transition values('456')");
            
            this._transition_commit();
        } catch (Exception e) {
            e.printStackTrace();
            try {
                this._transition_rollback();
                this._db_destory(this._db_conn, null, null);
            } catch (SQLException e1) {
                e1.printStackTrace();
            }
        } finally {
            try {
                this._db_destory(this._db_conn, null, null);
            } catch (SQLException e1) {
                e1.printStackTrace();
            }
        }
        return "1".equals(_);
    }
%>